<?php
require_once '../util/timer.php';
$stimer = mtimer();

require_once '../config.php';
require_once '../db/get/forum.php';

require_once '../util/consts.php';
require_once '../util/Bitter.php';


showFora();
echo '<center>',mtimer( $stimer ),'</center>';

function showFora() {  
  global $_TPL;
  $start = (int)$_REQUEST['start'];
  $end = ((int)$_REQUEST['inc'] > 0) ? (int)$_REQUEST['inc'] : DEF_POST_INC;

  $fora = getFora();

  if( is_array($fora) )
    $_TPL['fora'] = $fora;
  elseif( $fora === MSG_UNAUTHORIZED )
    showTpl('Unauthorized');
  else
    showTpl('Error');

  showTpl('Fora');
}

?>
